package soundManager;

import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioFormat;

public class Sound {
	
	private String key;
	private byte[] abData;
	private AudioInputStream audioInputStream;
	private AudioFormat audioFormat;
	private int	nBytesRead = 0;
	
	
	public Sound(String key){
		this.key = key;		
	}
	public void setSoundData(byte[] abData){
		this.abData = abData;		
	}
	public byte[] getSoundData(){
		return this.abData;
	}
	public void setAudioInputStream(AudioInputStream audioInputStream){
		this.audioInputStream = audioInputStream;
	}
	public AudioInputStream getAudioInputStream(){
		return this.audioInputStream;
	}
	
	public void setAudioFormat(AudioFormat audioFormat){
		this.audioFormat = audioFormat;
	}
	public AudioFormat getAudioFormat(){
		return this.audioFormat;
	}
	public void setBytesRead(int nBytesRead){
		this.nBytesRead = nBytesRead;
	}
	public int getBytesRead(){
		return this.nBytesRead;
	}
	
}
